package com.scofevil._17.container;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test1 {
	public static void main(String[] args) {
		List<String> s = new ArrayList<String>(Collections.nCopies(4, "l"));
		System.out.println(s);
		List<String> s1 = new ArrayList<String>();
		s1.add("a");
		s1.add("b");
		s1.add("c");
		s1.add("d");
		System.out.println(s1);
		Collections.fill(s1, "e");
		System.out.println(s1);
	}
}
